package com.mz.mattress.client.service.impl;

import com.mz.mattress.api.entity.SysParam;
import com.mz.mattress.client.mapper.SysParamMapper;
import com.mz.mattress.client.service.SysParamService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class SysParamServiceImpl implements SysParamService {

    @Autowired
    private SysParamMapper sysParamMapper;

    @Override
    public SysParam getSysParam(String key) {
        return sysParamMapper.selectByParamKey(key);
    }

}
